<!DOCTYPE html>
<html lang="en">
<!--header-->
<include file="Public:header"/>
<!--header-->

<section id="main-content">
    <section class="wrapper">
        <h3><i class="fa fa-angle-right"></i> 积分数</h3>
        <div class="row mt">
            <div class="col-md-12">
                <div class="content-panel">
                    <table class="table table-striped table-advance table-hover">
                        <h4><i class="fa fa-angle-right"></i> 积分数信息
                            <!--<a href="{:U('xie_form')}" class="btn btn-theme btn-default" style="margin-left: 40px">添加协议说明</a>-->
                        </h4>
                        <hr>
                        <thead>
                        <!-- <form class="form-inline" role="form" action="{:U('index')}" method="post">
                             <select class="btn btn-theme04" name="sou"  style="width: 100px;float: left;margin-left: 20px;">
                                 <option value="1">姓名</option>
                                 <option value="2">账号</option>
                             </select>
                             <div class="form-group" style="width: 300px;float: left;overflow: hidden;margin-left: 10px;margin-right: 10px">
                                 <input type="text" name="content" class="form-control"  placeholder="请输入关键字" style="float: left;text-align: center">
                             </div>
                             <input type="submit" class="btn btn-theme" value="搜索" style="float: left" />
                         </form>-->
                        <tr>
                            <th></th>
                            <th>签到可获积分数(个)</th>
                            <th>消费可获积分数(1元)</th>
                            <th>转介者收益可获积分数（1元）</th>
                            <th>分享积分数(首次)</th>
                            <!--<th>送花兑换积分数(个)</th>
                            <th>兑换礼品积分数(个)</th>-->
                            <th>1积分值多少钱（元）</th>
                            <th>一朵花的价格(元)</th>
                            <!--<th>操作时间</th>-->
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list" item="v">
                            <tr>
                                <td></td>
                                <td><span style="color: red;">{$v.nums_one}</span>个积分</td>
                                <td><span style="color: red;">{$v.nums_two}</span>个积分</td>
                                <td>每一元钱可获得 <span style="color: red;">{$v.nums_eight}</span>个积分</td>
                                <td><span style="color: red;">{$v.nums_three}</span>个积分</td>
                                <!--<td>{$v.nums_four}</td>
                                <td>{$v.nums_five}</td>-->
                                <td><span style="color: red;">{$v.nums_seven}</span>元</td>
                                <td><span style="color: red;">{$v.nums_six}</span>元</td>
                                <!--<td>{$v.create_at|date="Y-m-d H:i:s",###}</td>-->
                                <td>
                                    <if condition="QUAN eq 2">
                                        <a href="{:U('covers_form',array('id'=>$v['id']))}" class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></a>
                                    </if>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>
</section>

</section>
<!--footer-->
<include file="Public:footer"/>
<!--footer-->
<script type="text/javascript" src="__PUBLIC__/ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
    $(function() {
        //    fancybox
        jQuery(".fancybox").fancybox();
    });
    function del(id,type) {
        var currpage = "{$currpage}";
        if(id > 0){
            layer.confirm('确认要删除该协议吗？删除后不可恢复！', {
                title: '删除提示：',
                btn: ['确定'] //可以无限个按钮
            }, function(index, layero){
                $.ajax({
                    type:"post",
                    data:{id:id,type:type},
                    url:"{:U('Del/del')}",
                    success:function (res) {
                        if(res.status == 1){
                            layer.open({
                                title: '',
                                content: "删除成功",
                            });
                            if(currpage == 1){
                                location.href="__APP__/Dashboard/Company/covers";
                            }else{
                                location.href="__APP__/Dashboard/Company/covers/currpage/"+currpage;
                            }
                        }
                        if(res.status == 2){
                            layer.open({
                                title: ''
                                ,content: "删除失败"
                            });
                            _pass = false;
                        }
                    }
                })
            });
        }
    }
</script>

</body>
</html>
